﻿using Autofac;
using VisionCloud.Utility;

namespace VisionCloud.Web.Config
{
    public class AutofacModuleRegister : Autofac.Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            IocConfig.Init(builder);
            builder.RegisterBuildCallback(container =>
            {
                StartupServer.IocContainer = (IContainer)container;
            });
        }
    }
}
